/////////////////////////////////////////////////////////////////////////////
// Name:        MainWnd.cpp
// Purpose:     
// Author:      
// Modified by: 
// Created:     29/06/2011 16:00:46
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////
#include "mytest_inc.h"
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "DialogTest.h"

////@begin XPM images
////@end XPM images


/*
 * DialogTest type definition
 */

IMPLEMENT_DYNAMIC_CLASS( DialogTest, wxDialog )


/*
 * DialogTest event table definition
 */

BEGIN_EVENT_TABLE( DialogTest, wxDialog )

////@begin DialogTest event table entries
////@end DialogTest event table entries

END_EVENT_TABLE()


/*
 * DialogTest constructors
 */

DialogTest::DialogTest()
{
    Init();
}

DialogTest::DialogTest( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
    Init();
    Create(parent, id, caption, pos, size, style);
}


/*
 * MainWnd creator
 */

bool DialogTest::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin DialogTest creation
    SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    Centre();
////@end DialogTest creation
    return true;
}


/*
 * DialogTest destructor
 */

DialogTest::~DialogTest()
{
////@begin DialogTest destruction
////@end DialogTest destruction
}


/*
 * Member initialisation
 */

void DialogTest::Init()
{
////@begin DialogTest member initialisation
////@end DialogTest member initialisation
}


/*
 * Control creation for MainWnd
 */

void DialogTest::CreateControls()
{    
////@begin DialogTest content construction
    DialogTest* itemDialog1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
    itemDialog1->SetSizer(itemBoxSizer2);

////@end DialogTest content construction
}


/*
 * Should we show tooltips?
 */

bool DialogTest::ShowToolTips()
{
    return true;
}

/*
 * Get bitmap resources
 */

wxBitmap DialogTest::GetBitmapResource( const wxString& name )
{
    // Bitmap retrieval
////@begin DialogTest bitmap retrieval
    wxUnusedVar(name);
    return wxNullBitmap;
////@end DialogTest bitmap retrieval
}

/*
 * Get icon resources
 */

wxIcon DialogTest::GetIconResource( const wxString& name )
{
    // Icon retrieval
////@begin DialogTest icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end DialogTest icon retrieval
}
